
var api = require('../../utils/api.js');
var app = getApp();
Page({
    data: {
        tophe:0,
        bg:''
    },
    currentPageNumber: 1,
    onLoad() {
        var file=api.FIlE;
        this.setData({
            bg:file
        })

    },
    onShow() {
        let jn = wx.getMenuButtonBoundingClientRect();

        console.log(jn);
        var tophe=jn.top+jn.height;
        var over =tophe+230 ;
        this.setData({
            tophe:tophe,
            over:over+ 'px'
        })

  
     
    },
    goins(){
        wx.switchTab({
          url: '/pages/index/index',
        })
    }

});
